package com.sunbim.rsrv.common.exception;


public enum Error {

    SERVICE_ERROR(201, "服务运行错误"),
    SQL_ERROR(202, "SQL异常"),
    AUTHEN_ERROR(401, "登录认证失败"),
    AUTHOR_ERROR(403, "权限不足"),
    REQUEST_DATA_ERROR(406, "参数异常"),
    REQUEST_ERROR(400, "请求异常");

    private final int status;
    private final String msg;

    Error(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
